package org.fxcontainer.controls.ext
{
	import mx.containers.TabNavigator;
	
	import org.fxcontainer.controls.IControl;
	
	public class TabContainer extends TabNavigator implements IControl
	{
		
		/**
		 * The control name. 
		 */
		private var _controlName:String;
		
		public function TabContainer()
		{
			super();
			percentWidth = 100;
			percentHeight = 100;
		}
		
		/**
		 * Retrieves control name if set, otherwise element ID. 
		 * @return control name
		 */
		public function controlName():String
		{
			if (_controlName == ""){
				_controlName = id;
			}
			return this._controlName;
		}
		
		public function set controlname(controlName:String):void
		{
			this._controlName = controlName;
		}
	}
}